package com.moliyou.t2.mapper;

import com.moliyou.t2.VO.WeiboVO1;
import com.moliyou.t2.VO.WeiboVO2;
import com.moliyou.t2.VO.WeiboVO3;
import com.moliyou.t2.pojo.weibo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface weiboMapper {
    //@Insert("insert into weibo(content,created,user_id) values #{content},#{created},#{userId}")
    public int insertWeibo(weibo w);

    //@Update("update weibo set content=#{content} where id=#{id}")
    public int updateWeibo(weibo w);

   // @Select("select content,created from weibo where id=#{id}")
    WeiboVO1 selectWeiboById(Integer id);
    //@Select("select content,user_id from weibo where id=#{id}")
    WeiboVO2 select_Weibo_Content_userId_ById(Integer id);
    List<weibo> select_weibo_all();

    int dynamic_UpdateById(weibo w);

    int dynamic_DeleteById(Integer[] id);

    int dynamic_DeleteById_new(List<Integer> id);

    WeiboVO3 select_ResultMap(Integer id);



}
